<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 2017/4/27
 * Time: 12:38
 */
//调试用
header("Content-type: text/html; Charset=utf-8");

require_once('config.php');
require_once('function.php');

if(!($con=mysql_connect(HOST, USERNAME, PASSWORD))){
    echo '错误编号：'.mysql_errno();
    echo '<br />';
    echo '错误信息：'.mysql_error();
    echo '<hr />';
}

//选库
myQuery('use article');

//字符集
myQuery('set names utf8');

